package com.zrrd.learn.chapter08面向对象.综合类设计题.commodityfactory;

/**
 * 具体商品类B
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/9 13:58
 */

public class ConcreteProductB extends Product{

    @Override
    public void show(){
        System.out.println("商品名称:" + getName() + "\n商品价格:" + getPrice());
    }

}
